package cn.imnaer.service.rest.scenic;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import cn.imnaer.service.persistence.model.Scenic;
import cn.imnaer.service.rest.view.model.PageInfo;

@Path(value = "/scenic")
public interface ScenicComponentRestApi {
	@POST
	@Path("/publishContribute")
	@Produces("application/json;charset=UTF-8")
	@Consumes(MediaType.MULTIPART_FORM_DATA)
	public String publishContribute(String   contributeJson);
	@GET
	@Path("/getScenicDetail/{scenicId}/{userId}")
	@Produces("application/json;charset=UTF-8")
	public  String  getScenicDatail(@PathParam("scenicId")String  scenicId,@PathParam("userId")String userId);
	@GET
	@Path("/search/{keyword}/{userId}/{page}")
	@Produces("application/json;charset=UTF-8")
    public  String search(@PathParam("keyword")String keyword,@PathParam("userId")String userId,@PathParam("page")int page);


}
